# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class MoosePoetryRankingItem(scrapy.Item):
    collection = 'poetry_ranking'

    # 排名
    ranking_num = scrapy.Field()

    # 诗人姓名
    author_name = scrapy.Field()

    # 朝代
    dynasty = scrapy.Field()

    # 诗标题
    poetry_name = scrapy.Field()

    # 诗内容
    poetry_content = scrapy.Field()


class MoosePoetryAuthorItem(scrapy.Item):
    collection = 'poetry_author'

    # 诗人头像
    poetry_author_avatar = scrapy.Field()

    # 诗人名字
    poetry_author_name = scrapy.Field()

    # 简介
    poetry_author_info = scrapy.Field()

    # 诗词总数
    poetry_author_count = scrapy.Field()


class MooseProxyIpItem(scrapy.Item):
    collection = 'poetry_proxy_ip'
    # ip
    ip = scrapy.Field()

    # 端口
    port = scrapy.Field()

    # 匿名度
    anonymity = scrapy.Field()

    # 类型 http
    http_type = scrapy.Field()

    # 位置
    location = scrapy.Field()

    # 响应速度
    response_speed = scrapy.Field()


class ShiCiItem(scrapy.Item):
    collection = 'shici_item'
    # 作者
    poetry_author = scrapy.Field()
    # 诗词名
    poetry_name = scrapy.Field()
    # 诗词内容
    poetry_content = scrapy.Field()
    # 诗词序号
    poetry_num = scrapy.Field()


class MoosePoetryAuthorInfoItem(scrapy.Item):
    collection = 'poetry_author_info'

    # 诗人名字
    author_name = scrapy.Field()

    # 简介
    introduction = scrapy.Field()

    # 代表作
    magnum_opus = scrapy.Field()

    # 详细信息地址
    detail_url = scrapy.Field()

    # 朝代
    dynasty = scrapy.Field()


class MoosePoetryAuthorBaseInfoItem(scrapy.Item):
    collection = 'poetry_author_base_info'

    # 简介
    introduction = scrapy.Field()

    # 详细信息
    detail_info = scrapy.Field()

    # 详细信息地址
    detail_url = scrapy.Field()

    # 诗人名字
    author_name = scrapy.Field()

    # 收录作品
    collected = scrapy.Field()

    # 朝代
    dynasty = scrapy.Field()

    # 代表作
    magnum_opus = scrapy.Field()


class MoosePoetryCategoryInfoItem(scrapy.Item):
    collection = 'poetry_category_info'

    # 类型英文名
    category_type_en_name = scrapy.Field()

    # 类型中文名
    category_type_cn_name = scrapy.Field()

    # 类型详情地址
    category_detail_url = scrapy.Field()

    # 类型个数
    category_total = scrapy.Field()


class MoosePoetryCategoryItem(scrapy.Item):
    collection = 'poetry_category'

    # 诗词类目 id
    category_id = scrapy.Field()

    # 诗人名字
    author_name = scrapy.Field()

    # 诗名字
    poetry_name = scrapy.Field()

    # 诗词内容
    poetry_content = scrapy.Field()

    # 朝代
    dynasty = scrapy.Field()


class MoosePoetryItem(scrapy.Item):
    collection = 'poetry_item'

    # 诗人 id
    author_id = scrapy.Field()

    # 诗词名
    poetry_name = scrapy.Field()

    # 诗词内容
    poetry_content = scrapy.Field()

    # 诗词排名
    ranking_num = scrapy.Field()
